//
//  UICollectionView+PlaceHolder.h
//  CHSimpleUI
//
//  Created by cyptt on 2022/8/15.
//

#import <UIKit/UIKit.h>

@protocol CHCollectionViewPlaceHolderDelegate <NSObject>

@required

/**
 无数据占位图
 @return 占位图
 */
- (UIView * _Nullable)makePlaceHolderView;

@optional

/**
 出现占位图的时候TableView是否能拖动
 @return BOOL
 */
- (BOOL)enableScrollWhenPlaceHolderViewShowing;

@end

@interface UICollectionView (PlaceHolder)
@property (nonatomic, weak, nullable) id <CHCollectionViewPlaceHolderDelegate> placeHolderDelegate;

- (void)d_reloadData;
@end


